<div class="panel panel-default">
	<div class="panel-heading">
		<?php 
		$this->widget('zii.widgets.CBreadcrumbs',array(
				'links'=>array(
						'后台管理',
						'添加栏目'
		)
		));
		?>
	</div>
	<div class="panel-body">
		<?php
			$form = $this->beginWidget('CActiveForm',array(
					'htmlOptions'=>array('class'=>'form-horizontal')
			));
		?>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel, 'pid', array( 'class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-3">
					<?php
						echo $form->dropDownlist($categoryModel, 'pid', $cateTree, array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($categoryModel, 'pid');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel,'title', array( 'class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-4">
					<?php
						echo $form->textField($categoryModel, 'title', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($categoryModel, 'title');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php
					echo $form->labelEx($categoryModel, 'name', array('class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-4">
					<?php 
						echo $form->textField($categoryModel, 'name', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($categoryModel, 'name');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel, 'template', array('class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-3">
					<?php
						echo $form->textField($categoryModel, 'template', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($categoryModel, 'template');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel, 'sort', array('class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-2">
					<?php 
						echo $form->textField($categoryModel, 'sort', array('class'=>'form-control'));
					?>
					<?php 
						echo $form->error($categoryModel, 'sort');
					?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel, 'keywords', array('class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-8">
					<?php echo $form->textField($categoryModel, 'keywords', array('class'=>'form-control'));?>
					<?php echo $form->error($categoryModel, 'keywords');?>
				</div>
			</div>
			<div class="form-group">
				<?php 
					echo $form->labelEx($categoryModel, 'description', array('class'=>'control-label col-sm-2'));
				?>
				<div class="col-sm-8">
					<?php 
						echo $form->textArea($categoryModel,'description',array('class'=>'form-control'));
					?>
					<?php echo $form->error($categoryModel, 'description');?>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 col-sm-offset-2">
					<button class="btn btn-default">确认添加</button>
				</div>
			</div>
		<?php 
			$this->endWidget();
		?>
	</div>
</div>